﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LaneLpnr.Common
{
    public static class SendData
    {
        public struct ParkingDataInfo
        {
            public string parkId { get; set; }      //车场id
            public string ulid { get; set; }        //车道号
            public string plateHead { get; set; }   //前,车牌
            public string plateTail { get; set; }   //后,车牌
            public string color { get; set; }       //车牌颜色
            public string length { get; set; }      //车长 单位米
            public string model { get; set; }       //车型
            public string height { get; set; }      //车高 单位米
            public string axis { get; set; }        //轴数
            public string head { get; set; }        //车头图片的base64编码
            public string body { get; set; }        //车身图片的base64编码
            public string tail { get; set; }        //车尾部图片的base64编码
            public string time { get; set; }        //车头识别时间

            public string HttpSend { get; set; }    //完整数据

        }

        //初始化结构体
        public static ParkingDataInfo ParkInfo_Init()
        {
            ParkingDataInfo str = new ParkingDataInfo();
            str.ulid = Common.ConfigHelper.GetConnectionStringConfig("ulid");
            str.parkId = Common.ConfigHelper.GetConnectionStringConfig("parkId");

            return str;
        }



        public struct VehicletypeDataInfo
        {
            public string model { get; set; }       //车型
            public string length { get; set; }      //车长 
            public string height { get; set; }      //车高
            public string axis { get; set; }        //轴数
            public Int32 pixel { get; set; }       //像素
        }





    }
}
